package com.bjdd.jdy.ui.videoExam;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.ResourceUrlBean;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/26.
 */

public interface VideoExamContract {
    interface Model extends BaseModel{
        Observable<BaseResult<String>> commitExam(String token, int chapter, String carrierId);
        Observable<BaseResult<ResourceUrlBean>> getVideoURL(String token, int type);
    }
    interface View extends BaseView{
        void passExam();
        void urlBack(String url);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        public abstract void commitExam(int chapter);
        public abstract void getVideoURL(int type);
    }
}
